﻿using System;

using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SqlSugar;
using SH.Common.DataDictionary;

namespace SH.Common.CommonClass
{
    [TenantAttribute("multitenant")]
    public class Store : Tenant
    {
        /// <summary>
        /// 店铺ID 每个租户可能有多个门店，根据门店间数据隔离，根据门店登录
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int StoreId { get; set; }

        /// <summary>
        /// 店铺名称
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(50)")]
        public string? StoreName { get; set; }

        /// <summary>
        /// 地址
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(200)")]
        public string? Address { get; set; }

        /// <summary>
        /// 酒店类型
        /// </summary>
        public int HotelType { get; set; }

        /// <summary>
        /// 酒店logo
        /// </summary>
        public string? HotelLogo { get; set; }

        /// <summary>
        /// 简介
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(200)", IsNullable = true)]

        public string? Introduction { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string? Remark { get; set; }
        /// <summary>
        /// 状态 true停用 false启用
        /// </summary>
        public bool StoreStatus { get; set; }

        public DateTime? CreateTime { get; set; } = DateTime.Now;
    }
}
